<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-08-24 11:31
 *
 * Version: 2.0
 */

namespace App\Modules\Order\Validators;


class OrderControllerValidator
{
	public static function validator()
	{
		return [
			'getHairCutServiceTotalPrice' => [
				'service_id'           => [
					'title'   => '服务编号',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'count'           => [
					'title'   => '服务次数',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'payment'           => [
					'title'   => '支付方式',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'member_card_id'           => [
					'title'   => '会员卡ID',
					'rule'    => 'nullable|numeric',
					'message' => []
				],

			],
			'orderFinished'       => [
				'bill_id'           => [
					'title'   => '订单编号',
					'rule'    => 'required',
					'message' => []
				],
				'bill_info'         => [
					'title'   => '订单服务详情',
					'rule'    => 'required',
					'message' => []
				],
				'member_card_id'         => [
					'title'   => '会员卡id',
					'rule'    => 'nullable|numeric',
					'message' => []
				],
				'payment'            => [
					'title'   => '付款方式',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'finish_remark' =>[
					'title' => '订单完成备注',
					'rule'  => 'nullable|alpha_dash',
					'message' =>  []
				],
				'change_reason' =>[
					'title' => '改价原因',
					'rule'  => 'nullable|alpha_dash',
					'message' =>  []
				],

			],
			'appointment'         => [
				'store_id'         => [
					'title'   => '店铺id',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'service_id'       => [
					'title'   => '服务Id',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'appointment_time' => [
					'title'   => '预约时间',
					'rule'    => 'required|date',
					'message' => []
				],
				'mobile'           => [
					'title'   => '手机号',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'payment'          => [
					'title'   => '支付方式',
					'rule'    => 'nullable|numeric',
					'message' => []
				],

			],
			'onDutyTime'          => [
				'store_id'  => [
					'title'   => '店铺id',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'barber_id' => [
					'title'   => '理发师Id',
					'rule'    => 'required|numeric',
					'message' => []
				],
			],
			'onDutyTimeApp'       => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'dayAppointment'      => [
				'store_id'  => [
					'title'   => '店铺id',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'barber_id' => [
					'title'   => '理发师Id',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'date'      => [
					'title'   => '日期',
					'rule'    => 'required|date',
					'message' => []
				],
			],
			'dayAppointmentApp'   => [
				'store_id' => [
					'title'   => '店铺id',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'date'     => [
					'title'   => '日期',
					'rule'    => 'required|date',
					'message' => []
				],
			],
			'cancelAppointmentWx' => [
				'order_id' => [
					'title'   => '订单ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'remark' => [
					'title' => '备注',
					'rule'  => 'nullable|alpha_dash',
					'message' =>  []
				]
			],
			'withdrawWx'          => [
				'order_id' => [
					'title'   => '订单ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'remark' => [
					'title' => '备注',
					'rule'  => 'nullable|alpha_dash',
					'message' =>  []
				]
			],
			'refusedCancelApply'  => [
				'order_cancel_id' => [
					'title'   => '取消订单申请的ID',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'readCancelReasonWx' => [
				'order_cancel_id' => [
					'title'   => '取消订单申请的ID',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'readCancelReasonApp' =>  [
				'order_cancel_id' => [
					'title'   => '取消订单申请的ID',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'agreeCancelApply' =>  [
				'order_cancel_id' => [
					'title'   => '取消订单申请的ID',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'destroyCancelApplyWx' => [
				'order_cancel_id' => [
					'title'   => '取消订单申请的ID',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'destroyCancelApplyApp' =>  [
				'order_cancel_id' => [
					'title'   => '取消订单申请的ID',
					'rule'    => 'required|numeric',
					'message' => []
				]
			],
			'withdrawApp' => [
				'order_id' => [
					'title'   => '订单ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
				'remark' => [
					'title' => '备注',
					'rule'  => 'nullable|alpha_dash',
					'message' =>  []
				]
			],
			'cancelAppointmentApp' => [
				'order_id' => [
					'title'   => '订单ID',
					'rule'    => 'required|numeric',
					'message' => []
				],
			],
			'searchOrderListWx' => [
				'order_no' => [
					'title' => '订单编号',
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'page_size' => [
					'title' => '显示条数',
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'status' => [
					'title' => "订单状态",
					'rule'  => 'numeric',
					'message' => []
				]

			]
		];
	}
}